<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>add chart</title>
</head>
<body>
<div>
	Database
	<select>
		<c:forEach items="${map.get('datasources')}" var="ds">
				<option value="${ds.id}">${ds.name }</option>
			</c:forEach>
	</select>
</div>
<div>
	<div>
		Templets
	</div>
	<div>
		<select size="15" style="width: 100px;height: 300px">
			<c:forEach items="${map.get('templets')}" var="templet">
				<option value="${templet.id}">${ templet.name }</option>
			</c:forEach>
		</select>
	</div>
</div>
<fieldset>
<legend>chart title</legend>
	<div>
	content:
	</div>
	<div>
	<textarea rows="4" cols="215"></textarea>
	</div>
</fieldset>
<fieldset>
<legend>Lines</legend>
	Title:
	<input type="text">
	Line Color:
	<select>
		<option selected="selected">red</option>
		<option>blue</option>
	</select>
	
	<div>
	content:
	</div>
	<div>
	<textarea rows="5" cols="215"></textarea>
	</div>
</fieldset>
<a href="">add new line</a>
<div>
<button value="submit" >save</button>
</div>
</body>
</html>